package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketTrade;

import cn.taoticket.fallback.TaoticketTradeClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-pay-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketTradeClientFallBack.class)
public interface RestTaoticketTradeClient {

@RequestMapping(value = "/getTaoticketTradeById",method = RequestMethod.POST)
public TaoticketTrade getTaoticketTradeById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketTradeListByMap",method = RequestMethod.POST)
public List<TaoticketTrade>	getTaoticketTradeListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketTradeCountByMap",method = RequestMethod.POST)
public Integer getTaoticketTradeCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketTrade",method = RequestMethod.POST)
public Integer qdtxAddTaoticketTrade(@RequestBody TaoticketTrade taoticketTrade)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketTrade",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketTrade(@RequestBody TaoticketTrade taoticketTrade)throws Exception;
}
